# include <bits/stdc++.h>
# define MAXN 10023
using namespace std;

inline int gn() {
    int k = 0;
    char c = getchar();
    for(; !isdigit(c); c = getchar());
    for(; isdigit(c); c = getchar()) k = k * 10 + c - '0';
    return k;
}

int n, k, a[MAXN];
bool ans = 1;

int main() {
    k = gn() * 4;
    n = gn();
    for(int i = 1; i <= n; i++) {
        a[i] = gn();
        k -= ((a[i] - 1) >> 1) + 1;
        if(k < 0) {
            ans = false;
            break;
        }
    }
    if(ans) puts("YES\n");
    else puts("NO\n");
}

